
/* 
here overriding is implemented 
 BAse class and dervied class has same method name with same arguments
*/
class Base1
{
	public void show()
	{
		System.out.print("\n I am in show function in Base class \n");
	}
}
class Derived1 extends Base1
{
	public void show()
	{
		System.out.print("\n I am in show function in derived class \n");
	}
}

public class OverRidingDemo
{
	public static void main(String args[])
	{
		Base1 bobj=new Base1();
		bobj.show();
		Base1 dobj=new Derived1();
		dobj.show();
	}
}
